package cn.hdu.liang.core.dao.product;

import java.util.List;

import cn.hdu.liang.core.bean.product.Type;
import cn.hdu.liang.core.query.product.TypeQuery;

public interface TypeDao {

    //添加
    public Integer addType(Type type);

    //根据主键查找
    public Type getTypeByKey(Integer id);

    //根据主键批量查找
    public List<Type> getTypesByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateTypeByKey(Type type);

    //分页查询
    public List<Type> getTypeListWithPage(TypeQuery typeQuery);

    //集合查询
    public List<Type> getTypeList(TypeQuery typeQuery);

    //总条数
    public int getTypeListCount(TypeQuery typeQuery);
}
